package com.gotokeep.keep.composition.demo.samples;

import android.graphics.SurfaceTexture;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.TextureView;

import com.gotokeep.keep.composition.demo.R;
import com.gotokeep.keep.composition.demo.widgets.ScalableTextureView;
import com.gotokeep.keep.composition.source.VideoMediaSource;

public class VideoMediaSourceActivity extends AppCompatActivity implements TextureView.SurfaceTextureListener {
    private ScalableTextureView previewView;
    private VideoMediaSource mediaSource;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video_media_source);


        previewView = findViewById(R.id.preview_view);
        previewView.setSurfaceTextureListener(this);
    }

    @Override
    public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {

    }

    @Override
    public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {

    }

    @Override
    public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
        return false;
    }

    @Override
    public void onSurfaceTextureUpdated(SurfaceTexture surface) {

    }
}
